/**
 * @Author Hussein Patwa
 * @Date 03 March 2008 - Rev 07 May 2008
 * @version 2.0 Class to define the spatial object type with3 fields
 */
package trend;

@SuppressWarnings("all")
public class Spatialobject {
  /**
   * Constructor for spatialObject
   * 
   * @param X The X co-ordinate for the location
   * @param Y The Y co-ordinate for the location
   * @param v Statistical value associated with the location
   * @param name The name of the location (spatialObject)
   */

  double x;
  double y;
  double v;
  String name;

  public Spatialobject() {

  }

  /**
   * Populate the spatialobject
   * 
   * @param aname Name of the location (spatialObject)
   * @param X X co-ordinate for the location
   * @param Y Y co-ordinate for the location
   * @param V Statistical value associated with the location
   */
  public Spatialobject(String aname, double X, double Y, Double V) {
    this.name = aname;
    this.x = X;
    this.y = Y;
    this.v = V;
  }

  /**
   * Get the name for the spatialobject
   * 
   * @return String
   */
  public String getName() {
    return name;
  }

  /**
   * Set the name for the spatialobject
   * 
   * @return null
   * @param aname Name for the location (spatialobject)
   */
  public void setName(String aname) {
    this.name = aname;
  }

  /**
   * Get the X co-ordinate for the spatialobject
   * 
   * @return double
   */
  public double getX() {
    return x;
  }

  /**
   * Set the X co-ordinate for the spatialObject
   * 
   * @return null
   * @param X X co-ordinate for the location
   */
  public void setX(double X) {
    this.x = X;
  }

  /**
   * Get the Y co-ordinate for the spatialobject
   * 
   * @return double
   */
  public double getY() {
    return y;
  }

  /**
   * Set the Y co-ordinate for the spatialObject
   * 
   * @return null
   * @param Y Y co-ordinate for the location
   */
  public void setY(double Y) {
    this.y = Y;
  }

  /**
   * Get the value associated with the location
   * 
   * @return null
   */
  public double getV() {
    return v;
  }

  /**
   * Set the value associated with the location
   * 
   * @param V Value associated with the location
   * @return null
   */
  public void setV(double V) {
    this.v = V;
  }

  /**
   * Show the spatialobject and all its values
   * 
   * @return ull
   */
  public void showspatialObject() {
    System.out.println(name + "-- x :" + x + " y :" + y + " v :" + v);
  }
}
